CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

PROJECT(QtOgreGGG)

SET(SRC_FILES
	source/Main.cpp
	source/OgreWidget.cpp
	source/MainWindow.cpp
)

SET(INC_FILES
#	include/imdebug.h
	include/OgreWidget.h
	include/MainWindow.h 
)

#SET(UI_FILES
#	ui/FPSDialog.ui
#)

#SET(RESOURCE_FILES
#	resources/resources.qrc
#)

#"Sources" and "Headers" are the group names in Visual Studio.
SOURCE_GROUP("Sources" FILES ${SRC_FILES})
SOURCE_GROUP("Headers" FILES ${INC_FILES})

FIND_PACKAGE(Qt4)
SET(QT_USE_QTXML 1)
SET(QT_USE_QTOPENGL 1)
INCLUDE(${QT_USE_FILE})
 

QT4_WRAP_CPP(MOC_SRCS ${INC_FILES})
#QT4_WRAP_UI(UI_SRCS ${UI_FILES})
#QT4_ADD_RESOURCES(RESOURCE_SRCS ${RESOURCE_FILES})

INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/include ${OGRE_INCLUDE_DIR})
LINK_DIRECTORIES(${OGRE_LIB_DIR})

ADD_EXECUTABLE(QtOgreGGG ${INC_FILES} ${SRC_FILES}  ${MOC_SRCS} )# ${UI_SRCS} ${RESOURCE_SRCS})

#ADD_LIBRARY(QtOgre ${SRC_FILES} ${INC_FILES} ${MOC_SRCS})# ${UI_SRCS} ${RESOURCE_SRCS})
TARGET_LINK_LIBRARIES(QtOgreGGG ${QT_LIBRARIES} ${OGRE_LIBRARIES})

